package com.jx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jx.pojo.Attr;
import com.jx.pojo.Good;
import com.jx.pojo.ParamObj;
import com.jx.pojo.Trademark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SearchMapper extends BaseMapper {
    /**
     * 查询attr表的数据
     * @return
     */
    @Select("select * from attr")
    List<Attr> getAttrList();

    /**
     * 查询trademark表的数据
     * @return
     */
    @Select("select * from trademark")
    List<Trademark> getTrademarkList();

    /**
     * 查询good表的数据
     * @return
     */
    List<Good> getGoodsListByConditionAndPage(ParamObj paramObj);

    /**
     * 条件查询记录数
     */

    Integer getCountByConditionAndPage(ParamObj paramObj);

}
